package net.orange.framework.logic;

import java.util.Collection;

import net.orange.architecture.process.IBaseProcess;
import net.orange.framework.model.Commoninfo;

/**
 * The interface of common info business delegate process object, to retrieve ,
 * save , remove or process other operation for the common info object.
 */
public interface ICommoninfoProcess extends IBaseProcess {
	/**
	 * Get the common info according the special type and code.
	 * 
	 * @param type
	 *            The info type
	 * @param code
	 *            The info code
	 * @return the common info with the type and code.
	 * @throws Exception
	 */
	public Commoninfo get(String type, String code) throws Exception;

	/**
	 * Get the common info collection according the special type.
	 * 
	 * @param type
	 *            The info type
	 * @return the common info collection with the type.
	 * @throws Exception
	 */
	public Collection list(String type) throws Exception;

}